#include </usr/include/python2.7/Python.h>
#include <iostream>
#include <string>
using namespace std;
int main(void)
{
	Py_Initialize();
	PyRun_SimpleString("import sys");
	PyRun_SimpleString("sys.path.append('/home/iuc/Project/')");

	PyObject *pMoudle = NULL;
	PyObject *pFunc = NULL;
	pMoudle = PyImport_ImportModule("py_code");
	pFunc = PyObject_GetAttrString(pMoudle,"hello");
	if(Py_IsInitialized())
	{
		cout<<"init succeessful!"<<endl;
	}else
	{
		cout<<"init failure!"<<endl;
	}
	PyEval_CallObject(pFunc,NULL);
	Py_DECREF(pFunc);
	cout<<"Wangkaixuan"<<endl;
	Py_Finalize();
	return 0;
}
